package org.jiajie.designpatterndemo.bridge.runoob;

/**
 * 创建实现了 Shape 抽象类的实体类
 * @author jay
 */
public class Circle extends Shape {
    protected int x, y, radius;

    protected Circle(int x, int y, int radius, DrawApi drawApi) {
        super(drawApi);
        this.x = x;
        this.y = y;
        this.radius = radius;
    }

    @Override
    public void draw() {
        drawApi.drawCircle(radius, x, y);
    }
}
